/* Passkey管理页面样式 */
.passkey-content {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 25px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.content-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.content-title {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
}

/* 消息提示样式 */
.success-message {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 0.9rem;
}

.error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 0.9rem;
}

/* 区块样式 */
.passkey-section {
  margin-bottom: 30px;
  border-radius: 8px;
  background-color: #f8f9fa;
  padding: 20px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

/* 当前Passkey卡片 */
.passkey-info-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.passkey-info {
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  text-align: left;
}

.info-row label {
  display: block;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 120px;
  margin-right: 15px;
  text-align: left;
  padding-top: 2px;
}

.info-value {
  color: #333;
  font-size: 1rem;
  text-align: left;
  flex: 1;
}

.passkey-value {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  background-color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  word-break: break-all;
  color: #333;
  border: 1px solid #e0e0e0;
  text-align: left;
  flex: 1;
}

/* 按钮和操作区域 */
.passkey-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.generate-btn {
  background-color: #ffd600;
  color: #222;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95rem;
}

.generate-btn:hover:not(:disabled) {
  background-color: #ffe066;
}

.generate-btn:disabled {
  background-color: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}

.warning-message {
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: left;
  max-width: 100%;
}

/* 表格样式 */
.table-container {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.passkey-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.passkey-table th {
  background-color: #f8f9fa;
  color: #333;
  font-weight: 600;
  padding: 15px 12px;
  text-align: left;
  border-bottom: 2px solid #e9ecef;
  font-size: 0.9rem;
}

.passkey-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e9ecef;
  text-align: left;
  vertical-align: top;
}

.passkey-table tbody tr:hover {
  background-color: #f8f9fa;
}

.passkey-table tbody tr:last-child td {
  border-bottom: none;
}

/* 表格中的Passkey值 */
.passkey-table .passkey-value {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  background-color: #f5f5f5;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  word-break: break-all;
  color: #333;
  border: 1px solid #e0e0e0;
  display: inline-block;
  max-width: 200px;
}

/* 状态标签 */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  min-width: 60px;
}

.status-active {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.status-inactive {
  color: #6c757d;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

/* 分页样式 */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid #e9ecef;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-btn {
  background-color: #ffd600;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #222;
  font-weight: 500;
}

.page-btn:hover:not(:disabled) {
  background-color: #ffe066;
}

.page-btn:disabled {
  opacity: 0.6;
  background-color: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}

.page-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
}

.page-input, .size-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
}

.page-size-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
}

/* 无数据提示 */
.no-data-message {
  text-align: left;
  padding: 30px 20px;
  color: #666;
  font-style: italic;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* 加载状态 */
.content-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  color: #666;
  font-size: 1.1rem;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .passkey-content {
    padding: 20px 15px;
  }
  
  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .info-row label {
    min-width: auto;
    margin-right: 0;
    margin-bottom: 5px;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .passkey-table {
    min-width: 600px;
  }
  
  .passkey-table .passkey-value {
    max-width: 150px;
    font-size: 0.8rem;
  }
  
  .pagination {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .pagination-controls {
    width: 100%;
    justify-content: center;
  }
  
  .page-size-control {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .passkey-table th,
  .passkey-table td {
    padding: 10px 8px;
  }
  
  .passkey-table .passkey-value {
    max-width: 120px;
    font-size: 0.75rem;
    padding: 4px 6px;
  }
  
  .status-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    min-width: 50px;
  }
}

/* 在文件末尾添加分页容器样式 */

.pagination-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 20px 0;
}

.pagination-container .ant-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
} 